<h3>fetch data from some API</h3>
<button (click)="fetchPeople()">fetch people</button>
<button (click)="fetchAnimal()">fetch animal</button>
<hr/>

<ul>
  <li *ngFor="let item of people$">
    {{item.name}} - age: {{item.age}}
  </li>
</ul>
<ul>
  <li *ngFor="let item of animal$ | async">
    {{item.name}} - weight: {{item.weight}}
  </li>
</ul>

<p *ngIf="message">{{message}}</p>
